<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <style>
        * {
            margin: 0;
            padding: 0;
        }
        html,body {
            height: 100%;
            overflow: hidden;
        }
        #test {
            width: 200px;
            height: 200px;
            border-radius: 50%;
            background: #07daa5;
            text-align: center;
            font: 30px/200px sans-serif;

            position: absolute;
            top: 0;
            right: 0;
            bottom: 0;
            left: 0;
            margin: auto;

            transition: 1s;
        }
        body:hover #test {
            /*rotate旋转 translate平移 skew倾斜 scale缩放*/
            transform: rotate(360deg);
            /*旋转、缩放基点*/
            transform-origin: 50% 50%;
            /*cos,sin,-sin,cos*/
            transform: matrix(1,0,0,1,0,0);
        }
    </style>
</head>
<body>
    <div id="test">
        2D变换
    </div>
</body>
</html>
